﻿using System;
using System.Collections.Generic;
using System.Text;
using ReactiveUI;
using RxWPF.Views;
using Splat;

namespace RxWPF
{
    public class AppViewModel : ReactiveObject
    {
        public AppViewModel()
        {
            MainViewer = new MainViewer();

            RoutingHostViewer = new RoutingHostViewer(Locator.CurrentMutable);
        }

        private MainViewer mainViewer;
        public MainViewer MainViewer
        {
            get => mainViewer;
            set => this.RaiseAndSetIfChanged(ref mainViewer, value);
        }

        private RoutingHostViewer routingHostViewer;
        public RoutingHostViewer RoutingHostViewer
        {
            get => routingHostViewer;
            set => this.RaiseAndSetIfChanged(ref routingHostViewer, value);
        }
    }
}
